package com.cyp.blogsystem.controller;

import com.cyp.blogsystem.pojo.Result;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import lombok.RequiredArgsConstructor;

@RestController
@RequestMapping("/api/v1/upload")
@RequiredArgsConstructor
public class UploadController {

    /**
     * 上传图片
     */
    @PostMapping("/image")
    public Result<?> uploadImage(@RequestParam("file") MultipartFile file,
                                 @RequestParam(required = false) String type) {
        // TODO: 实现图片上传逻辑
        return Result.success(null);
    }
}